package fasilkom.antz;


public class Status {
	
	public int health;
	public int energy;
	public int damage;
	public int type;
	public int level = 0;
	public int energyUsed;
	public int maxEnergy;
	public int maxHealth;
	
	public final static int WARRIOR = 0;
	public final static int ROGUE = 1;
	public final static int TANK = 2;
	public final static int Z = 3;
	public static final String[] TYPES = {"Bullet Ant", "Thief Ant", "Bulldog Ant", "Z"};
	
	public Status(int health, int energy, int damage){
		this.maxEnergy = energy;
		this.maxHealth = health;
		this.health = health;
		this.energy = energy;
		this.damage = damage;
	}
	
	public Status(int type){
		this.type = type;
		
		if(type == WARRIOR){
			maxEnergy = 100;
			maxHealth = 100;
			health = 100;
			energy = 100;
			energyUsed = 10;
			damage = 30;
		}
		
		else if(type == ROGUE){
			maxEnergy = 100;
			maxHealth = 75;
			health = 75;
			energy = 100;
			energyUsed = 7;
			damage = 15;
		}
		
		else if(type == TANK){
			maxEnergy = 100;
			maxHealth = 150;
			health = 150;
			energy = 100;
			energyUsed = 12;
			damage = 45;
		}
		
		else if(type == Z){
			maxEnergy = 100;
			maxHealth = 125;
			health = 125;
			energy = 100;
			energyUsed = 10;
			damage = 35;
		}
	}

	public String getTypeString() {
		return TYPES[type];
	}
}
